@echo off
taskkill /f /fi "IMAGENAME eq adl.exe"
set BU=%1build.txt
set VE=%1version.txt
set AS=%1Version.as
set /p build=<%BU%
set /p version=<%VE%
set /a build=%build%+1
echo %build% > %BU%
echo package version {>%AS%
echo 	
echo	/** 	application Hardcore on Android V%version%.%build%	*/
echo 	
echo 	public class Version>>%AS%
echo 	{>>%AS%
echo 		public static const VERSION:String = "%version%";>>%AS%
echo 		public static const BUILD:uint = %build%;>>%AS%
echo		public static function SAY():String>>%AS%
echo		{>>%AS%
echo			return "HardcoreOnAndroid V. " + VERSION + "." + BUILD;>>%AS%
echo		}>>%AS%
echo 	}>>%AS%
echo }>>%AS%